POV-Ray : Newsgroups : povray.binaries.images : Bathtub - take 2 : Re: Bathtub - take 2 Server Time
1 Aug 2024 10:14:50 EDT (-0400)
  Re: Bathtub - take 2  
From: Cousin Ricky
Date: 18 Dec 2008 01:55:00
Message: <web.4949f2a26655db1885de7b680@news.povray.org>
"alphaQuad" <alp### [at] earthlinknet> wrote:
> Here's a Cousin Ricky norm and the one I did for the Lego pool.
> not in that order
>
> #declare n_surface = normal {
>          function { f_ridge (x, y, z, 0.1, 1.0, 7, 0.7, 0.7, 0) } 2
> //   function { f_ridged_mf (x, y, z, 0.1, 3.0, 7, 0.7, 0.7, 2) } 2
> }

I got the 2nd function from Christoph Hormann's water tutorial.

The "2" on the end is mine, though.  A plane with a surface normal is not
realistic near the horizon.  I was spurred to investigate when the real-life
sea outside my car window looked nothing like my render.  An isosurface (or
height field) looked a lot more like the real thing.  The "2" was an attempt to
compensate for the difference without giving up the speed advantage of a plane.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.